import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import * as path from "path";

// https://vitejs.dev/config/
export default defineConfig({
    plugins: [vue(), vueJsx()],
    server: {
        host: '0.0.0.0', //增加局域网访问
        port: 5000,
        open: true  //是否自动打开浏览器
    },
    resolve: {
        alias: {
            '@': path.resolve(__dirname, './src')
        }
    }
})
